package com.sparrow.rabbit;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * 
 *@Description: RabbitMQ的配置类
 *以入门为主，先以最小化的配置来定义，以完成一个基本的生产和消费过程
 *@Author:hjt 
 *@Version:1.0.0
 */
@Configuration
public class RabbitConfig {

    @Bean
    public Queue helloQueue() {
        return new Queue("hello");
    }

}
